<?php

namespace Library;

class FileLoader {

    private $path;
    private $content;

    public function __construct() {
        
    }

    public function getPath() {
        return $this->path;
    }

    public function setPath($path) {
        $this->path = $path;
    }

    private function readContent() {
        $this->content = file_get_contents($this->path);
    }

    public function getContent() {
        if ($this->content === NULL)
            $this->readContent();
        return $this->content;
    }

}